function handles = analyzeEPArray_afterEdit(handles)
% analyzeEPArray_afterEdit     
%
% last part of original function
%
% gs june 2006
% ------------------------------------------------------------------------------
spacingXY = [handles.data.map.mapActive.mapSpacing handles.data.map.mapActive.mapSpacing];

try
    somaXYZ = [handles.data.acq.somaXnew handles.data.acq.somaYnew handles.data.acq.somaZ];
catch
    somaXYZ = [handles.data.acq.somaX handles.data.acq.somaY handles.data.acq.somaZ];
    disp('analyzeEPArray: using original (untransformed) soma X and Y coordinates; check that this is accurate');
end

figFlag = 1;

handles = excitationProfileAnalysis(handles, spacingXY, somaXYZ, figFlag);

try
    handles = array2DplotEP(handles);
catch
end
